let fs = require('fs');
let ejs = require('ejs');
let express = require('express');
let home = express.Router();
home.get('/', function (request, response) {
    //读取模板文件
    fs.readFile('./view/index.html', 'utf8', function (error, data) {
        //响应信息
        response.send(ejs.render(data));
    });
});
//
module.exports = home;